<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" class="form-control" name="row[title]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sort')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" class="form-control" name="row[sort]" type="number" value="100">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Url')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-url" class="form-control" name="row[url]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">

            {:build_radios('row[status]', ['1'=>__('显示'), '0'=>__('隐藏')])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Big_pic')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-big_pic" class="form-control" size="50" name="row[big_pic]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-big_pic" class="btn btn-danger faupload" data-input-id="c-big_pic" data-multiple="false" data-preview-id="p-big_pic"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-big_pic" class="btn btn-primary fachoose" data-input-id="c-big_pic" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-big_pic"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-big_pic"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Small_pic')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-small_pic" class="form-control" size="50" name="row[small_pic]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-small_pic" class="btn btn-danger faupload" data-input-id="c-small_pic" data-multiple="false" data-preview-id="p-small_pic"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-small_pic" class="btn btn-primary fachoose" data-input-id="c-small_pic" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-small_pic"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-small_pic"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Svg1_pic')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-svg1_pic" class="form-control" size="50" name="row[svg1_pic]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-svg1_pic" class="btn btn-danger faupload" data-input-id="c-svg1_pic" data-multiple="false" data-preview-id="p-svg1_pic"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-svg1_pic" class="btn btn-primary fachoose" data-input-id="c-svg1_pic" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-svg1_pic"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-svg1_pic"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Svg2_pic')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-svg2_pic" class="form-control" size="50" name="row[svg2_pic]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-svg2_pic" class="btn btn-danger faupload" data-input-id="c-svg2_pic" data-multiple="false" data-preview-id="p-svg2_pic"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-svg2_pic" class="btn btn-primary fachoose" data-input-id="c-svg2_pic" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-svg2_pic"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-svg2_pic"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Create_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-create_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[create_time]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>
